<%@ page pageEncoding="utf-8" %>
<%@ include file="/header.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<script type="text/javascript" src="${ctx}/fckeditor/fckeditor.js"></script>

<div align="center">修改留言</div>
<div align="center">
	<a href="${ctx}/admin/secure/manage?q=list">返回管理首页</a>
	<a href="${ctx}/admin/user?q=logout">退出</a><br>
</div>
<c:set var="gb" value="${requestScope['guestbook.admin.edit'] }"/>
<form id="form1" name="form1" method="post" action="${ctx}/admin/secure/manage">
  <input type="hidden" name="id" value="${gb.id}"/>
  <input type="hidden" name="q" value="update"/>
  <div align="center"><table width="530" border="1">
    <tr>
      <td>姓名：</td>
      <td><label>
        <input name="name" type="text" id="name" size="40" value="${gb.name }"/>
      </label></td>
    </tr>
    <tr>
      <td>Email：</td> 
      <td><label>
        <input name="email" type="text" id="email" size="40" value="${gb.email}" />
      </label></td>
    </tr>
    <tr>
      <td>电话：</td>
      <td><label>
        <input name="phone" type="text" id="phone" size="40" value="${gb.phone}"/>
      </label></td>
    </tr>
    <tr>
      <td>主题：</td>
      <td><label>
        <input name="title" type="text" id="title" size="40" value="${gb.title}"/>
      </label></td>
    </tr>
    <tr>
      <td>内容：</td>
      <td><label>
      <script>
      	window.onload=function(){
	      	var editor= new FCKeditor('content');
	      	editor.BasePath='${ctx}/fckeditor/';
	      	editor.Height=200;
	      	editor.ToolbarSet='Basic';
	      	editor.ReplaceTextarea();
      	}
      </script>
      <textarea name="content" rows="10" cols="80" >${gb.content}</textarea>
      </label></td> 
    </tr>
    <tr>
      <td><label>
        <input type="submit" name="button" id="button" value="提交" />
      </label></td>
      <td><label>
        <input type="reset" name="button2" id="button2" value="重置" />
      </label></td>
    </tr>
  </table></div>
</form>

<%@ include file="/footer.htm" %>
